$OpenBSD: patch-src_qt_src_corelib_tools_qiterator_h,v 1.1 2017/04/27 16:31:18 espie Exp $
--- src/qt/src/corelib/tools/qiterator.h.orig	Thu Apr 27 16:12:16 2017
+++ src/qt/src/corelib/tools/qiterator.h	Thu Apr 27 16:15:28 2017
@@ -47,10 +47,24 @@
 QT_BEGIN_HEADER
 
 #ifdef QT_NO_STL
+#include <new>
+# if defined(_LIBCPP_VERSION)
+// shut up clang
+#  pragma GCC diagnostic push
+#  pragma GCC diagnostic ignored "-Wc++11-extensions"
+_LIBCPP_BEGIN_NAMESPACE_STD
+    struct bidirectional_iterator_tag;
+    struct random_access_iterator_tag;
+_LIBCPP_END_NAMESPACE_STD
+
+#  pragma GCC diagnostic pop
+# else
+
 namespace std {
     struct bidirectional_iterator_tag;
     struct random_access_iterator_tag;
 }
+# endif
 #endif
 
 QT_BEGIN_NAMESPACE
